package com.dfe.backend.common.constant;

/**
 * @author LiChang(lclicht @ qq.com)
 * @version 1.0
 * @class BaseConstant
 * @since 2023-12-6 10:16
 */
public class BaseConstant {

    private BaseConstant() {
    }

    /**
     * Token过期——A230
     */
    public static final String TOKEN_EXPIRED = "A230";
    /**
     * Token为空——A231
     */
    public static final String TOKEN_NULL = "A231";
    /**
     * Token用户错误——A232
     */
    public static final String TOKEN_USER_ERROR = "A232";
    /**
     * Token用户不存在——A233
     */
    public static final String TOKEN_USER_NULL = "A233";
    /**
     * Token签名异常——A234
     */
    public static final String TOKEN_SIGNATURE_ERROR = "A234";

    /**
     * 权限不足——A300
     */
    public static final String INSUFFICIENT_PRIVILEGE = "A300";

    /**
     * 用户已被禁用——A301
     */
    public static final String USER_DISABLED = "A301";

    /**
     * 密码错误——A302
     */
    public static final String PWD_MISTAKE = "A302";

    /**
     * 参数缺失——A400
     */
    public static final String MISS_PARAM = "A400";

    /**
     * 插入报错——A401
     */
    public static final String INSERT_ERROR = "A401";

    /**
     * 更新报错——A402
     */
    public static final String UPDATE_ERROR = "A402";

    /**
     * 删除报错——A403
     */
    public static final String DELETE_ERROR = "A403";

    /**
     * 数据不存在——A404
     */
    public static final String NO_DATA = "A404";

    /**
     * 错误方法——A405
     */
    public static final String METHOD_NOT_ALLOWED = "A405";

    /**
     * 主键冲突——A406
     */
    public static final String PRIMARY_KEY_CONFLICT = "A406";

    /**
     * 系统异常——A407
     */
    public static final String SYSTEM_ERROR = "A407";

    /**
     * 数据异常——A408
     */
    public static final String DATA_ERROR = "A408";

    /**
     * 已完成的任务——A409
     */
    public static final String HAS_FINISHED = "A409";

    /**
     * Mqtt返回消息——close
     */
    public static final String MQTT_MSG_CLOSE = "close";

    /**
     * 空格字符——" "
     */
    public static final String SPACE_FILTER = " ";

    /**
     * 残相系数
     */
    public static final Double AIN_COEFFICIENT = 0.75;

    /**
     * 告警标记，0-无，1-需要判定
     */
    public static final String WARN_SIGN_NO = "0";
    public static final String WARN_SIGN_YES = "1";

    /**
     * 告警信息
     */
    public static final String WARN_DESC_CT = "CT断线";
    public static final String WARN_DESC_PT = "PT断线";
    public static final String WARN_DESC_DEVICE_LOCK = "装置闭锁";
    public static final String WARN_DESC_STREAM_OVER = "差流越限";
    public static final String WARN_DESC_STREAM_ERROR = "差流异常";
    public static final String WARN_DESC_SV_ERROR = "保护电流SV采样无效";

    public static final String SEPARATE_CODE_SLASH = "/";
    public static final String SEPARATE_CODE_COMMA = ",";

    public static final String TRANSFORMER_MU = "变压器合并单元";
    public static final String TRANSFORMER_HIGH_VOLTAGE = "高压";
    public static final String TRANSFORMER_MIDDLE_VOLTAGE = "中压";
    public static final String TRANSFORMER_LOW_VOLTAGE = "低压";

    public static final String BREAK_MU = "断路器合并单元";
    public static final String BREAK_SV = "SV";


    public static final String MERGE_UNIT = "合并单元";
    public static final String SMART_TERMINAL = "智能终端";
    public static final String GOOSE_NETWORK = "GOOSE网";


    /**
     * 文件后缀
     */
    public static final String FILE_SUFFIX_DAT = ".dat";
    public static final String FILE_SUFFIX_CFG = ".cfg";

    /**
     * 告警完成标击，0-未完成，1-已完成
     */
    public static final Integer COMPLETE_FLAG_NO = 0;
    public static final Integer COMPLETE_FLAG_YES = 1;

    /**
     * 服务
     */
    public static final String SERVICE_ZYHD = "zyhd";
    public static final String SERVICE_WUCAI = "wucai";

}
